package com.fcscs.ecms.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.fcscs.core.dao.Dao;
import com.fcscs.cservice.ws.schema.common.MenuListView;
import com.fcscs.cservice.ws.schema.common.PictureFrameView;
import com.fcscs.cservice.ws.schema.common.PictureView;

@Repository
public interface ECMSMasterMenuDao extends Dao{

	

	/**
	 * @param id
	 * @return
	 */
	MenuListView getMenuListView(long id);
	
	
	/**
	 * @param mmiList
	 * @return
	 */
	List<MenuListView> saveMainMenuItemList(List<MenuListView> mmiList); //used to save display order

	/**
	 * @param mmi
	 * @return
	 */
	MenuListView createMenuListView(MenuListView mmi);

	/**
	 * @param mmi
	 * @return
	 */
	MenuListView saveMenuListView(MenuListView mmi);
	
	/**
	 * @param mmi
	 * @return
	 */
	boolean deleteMenuListView(MenuListView mmi);

	/**
	 * @param mmi
	 * @return
	 */
	boolean permDeleteMenuListView(MenuListView mmi);
	
	/**
	 * @param orgId
	 * @param propId
	 * @param menuType
	 * @param id
	 * @param versionId
	 * @return
	 */
	boolean isMainMenuItemTaken(long orgId, long propId, String menuType, Long id, long versionId);

	/**
	 * @param orgId
	 * @param propId
	 * @return
	 */
	List<MenuListView> getMainMenuItemViewList(long orgId, long propId); //used by web service, get current version
	
	PictureFrameView getPictureFrameView(long id);
	PictureView getPictureView(long period,List<PictureView> pictureViewList, long version);
	List<PictureView> getPictureView(long version);
	List<MenuListView> getMenuListView(long orgId, long propId, long langId);
}
